 |
|
 |
Subject: xPages: Combobox with "Refresh choices on document refresh". How ? |
 |
 |
 |
Product Area: Domino Designer on Eclipse (DDE) |
 |
Technical Area: Functionality |
 |
Platform: Windows XP client |
 |
Release: 8.5 |
 |
Reproducible: Not applicable |
 |
 |
 |
 |
Hi,
I am testing the new xPages and they are great :-)
However I can!t get a simple combobox with "Refresh choices on document refresh" to work.
On my form (xPage with a data source "Document" called "Doc1") i have two comboboxes.
The first one ("ProjectName") gets its values from the following formula "@DbColumn("","Projects",1);". And this works !
The second on should offer different values based on the selection of the previous combobox.
It has this formula: "@DbLookup("","Projects",Doc1.getItemValueString("ProjectName"),2);"
The first combobox has the onChange-Event set to perform a "Partial Update" on the second combobox. (I also tried a full update with same result.)
But my second combobox is always empty. :-(
If I do the Lookup with a hard-coded key value, then it works. So its not a problem with the view or the Lookup syntax. Rather the code "Doc1.getItemValueString("ProjectName")" seems not to return the current value from the first field.
Is this approach wrong ?
If I try to put the code "Doc1.getItemValueString("ProjectName")" into a computed field, it does not display the value correctly. Do i have to save the document first ?
I am using only server-side scripts, does this have to be done with "client side" code ?
Thank you for any help.
Or could you point me to a working example somewhere ?
Bye Lars
 
Feedback number WEBB7QUU7Q created by ~Ethan Frofoomanikle on 04/06/2009

Status: Open
Comments:

xPages: Combobox with "Refresh choi... (~Ethan Frofooma... 6.Apr.09)
. . Sounds like you're doing alot of th... (~Joan Zektoomar... 7.Apr.09)
. . . . Still no progress (~Ethan Frofooma... 7.Apr.09)
. . . . . . Could you send me the sample app? (~Joan Zektoomar... 7.Apr.09)
. . Designer bug (PHAN7QWBL8) logged, t... (~Joan Zektoomar... 8.Apr.09)
. . . . It works !! But more info... (~Ethan Frofooma... 8.Apr.09)
. . . . . . Here how to work with this... (~Joan Zektoomar... 8.Apr.09)
. . . . . . . . Thanks a lot. It works :-) (~Ethan Frofooma... 8.Apr.09)
. . . . . . . . . . Found the answer to he last questio... (~Ethan Frofooma... 8.Apr.09) |
|  |
|